package com.example.demo.constant;

/**
 *
 * JWT 常用常量
 */
public class Constant {
    //异常
    public static final int JWT_ERRCODE_EXPIRE=1007; //Token过期
    public static final int JWT_ERRCODE_FAIL=1008; //验证不通过


    //jwt需要用到的常量
    public static final String JWT_ID = "jwt-java1111"; //jwt签发者
    //密匙
    public static final String JWT_SECRET = "nfjenfaEINFUNSEFUNBFninwdw";//随便写个，注意长度必须大于16
    //过期时间
    public static final int JWT_TTL = 60 *60 *1000;
    public static final int JWT_REFRESH_INTERVAL = 18 *1000;
    public static final int JWT_REFRESH_TTL = 60*1000; 
}
